#CROSS := "set your toolchain"

#ifneq ($(CROSS),)
#CROSS_PREFIX := $(CROSS)
#endif

CC = $(CROSS_PREFIX)gcc
CFLAGS = -c -g -Wall -DUNIX \
         -I ./ -I ./Inc \
         -I "set your toolchain"
LDFLAGS = #-L ./LM -Wl,-rpath -Wl,./
LDLIBS = #-lf3bc4bio -lf3bc4com -lf3bc4bsp -lf3bc4cap -lf3bc4mat
OBJS =  main.o\
        log_msg.o

main : $(OBJS)
	$(CC) -o main $(OBJS) $(LDFLAGS) $(LDLIBS)

clean:
	$(RM) *~ *.o main

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<